﻿@model Qy.Scenario.ViewContentOldCms
@{
    ViewData["Title"] = Model.Title;
    ViewData["SiteName"] = await SystemConfig.GetByFieldNameAsync("SiteName");
    ViewData["Description"] = await SystemConfig.GetByFieldNameAsync("Description");
    Layout = null;
}
<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="@ViewData["Description"]">
    <meta name="author" content="Cdeng">
    <title>@ViewData["Title"]</title>
    <link href="~/lib/layui/css/layui.css" rel="stylesheet">
    <link href="~/home/css/main.css" rel="stylesheet">
    <link href="~/home/css/list.css" rel="stylesheet">
</head>
<body>
    <style>
        body { width: 100%; min-height: 100%; background: url("/home/images/header_bg.jpg") top center no-repeat #fff; }
        .cxuu-index-margin-top { margin-top: 500px; }
    </style>
    <!--头部部分 开始-->
    <partial name="_Header" />
    <div class="layui-container" style="margin-top:10px;">
        <div class="layui-bg-gray" style="padding:10px;">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-panel" style="text-align:left;padding:10px;">
                        <span class="layui-breadcrumb">
                            <a href="/">Home</a>
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-container">
        <div class="layui-bg-gray" style="padding:10px;">
            <div class="layui-card">
                <div class="layui-card-header" style="text-align:center;padding:20px;"><h1>@Model.Title</h1></div>
                <div class="layui-card-header" style="text-align:center;padding:5px;">
                  发布时间：  @DateUtility.ToDateTime10(Model.Time)
                </div>
                <div class="layui-card-body">
                    @*@Html.DisplayForModel();*@
                    <p><div id="content">@Html.Raw(System.Net.WebUtility.HtmlDecode(Model.Content))</div></p>
                </div>
            </div>
        </div>
    </div>
    <partial name="_Footer" />
    <script src="~/lib/layui/layui.js"></script>
    <script>
        layer.photos({
            photos: '#content'
            , anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机
        });

    </script>
</body>
</html>